/* 全局样式 */
:root {
    --primary-color: #4C84FF;
    --secondary-color: #5E6C84;
    --success-color: #36B37E;
    --danger-color: #FF5630;
    --warning-color: #FFAB00;
    --info-color: #00B8D9;
    --light-color: #F4F5F7;
    --dark-color: #172B4D;
    --white-color: #FFFFFF;
    --border-color: #DFE1E6;
    --bg-color: #F9FAFB;
    --sidebar-width: 220px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: var(--dark-color);
    background-color: var(--bg-color);
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* 登录页面样式 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--bg-color);
}

.login-container {
    width: 100%;
    max-width: 460px;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-bottom: 20px;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color);
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    color: var(--dark-color);
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 6px;
}

.forgot-password {
    color: var(--secondary-color);
    font-size: 12px;
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #3a70e3;
}

.agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 12px;
}

.agreement input {
    margin-right: 8px;
    margin-top: 2px;
}

.other-login {
    margin-top: 30px;
    text-align: center;
}

.other-login p {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 12px;
    position: relative;
}

.other-login p::before,
.other-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: var(--border-color);
}

.other-login p::before {
    left: 0;
}

.other-login p::after {
    right: 0;
}

.social-logins {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-color);
    color: var(--secondary-color);
    transition: background-color 0.3s, color 0.3s;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.login-footer {
    color: var(--secondary-color);
    font-size: 12px;
    text-align: center;
}

/* 主页样式 */
.app-body {
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--white-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.logo-small {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.app-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.sidebar-menu {
    padding: 16px 0;
}

.menu-item {
    padding: 8px 16px;
    position: relative;
}

.menu-item.active {
    background-color: rgba(76, 132, 255, 0.1);
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--primary-color);
}

.menu-item a {
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.menu-item i {
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-item.active a {
    color: var(--primary-color);
}

.sidebar-submenu {
    padding: 8px 16px;
    color: var(--secondary-color);
    font-size: 12px;
}

.sidebar-submenu ul {
    margin-top: 8px;
}

.sidebar-submenu li {
    padding: 4px 0;
}

.sidebar-history {
    padding: 0 16px 16px;
    margin-top: auto;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-history h3 {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 16px 0 8px;
}

.history-list li {
    padding: 4px 0;
    font-size: 12px;
}

.history-list a {
    color: var(--dark-color);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-left: 8px;
}

.user-menu {
    position: relative;
    margin-left: 16px;
}

.menu-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--dark-color);
    display: flex;
    align-items: center;
}

.menu-button i {
    margin-right: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 160px;
    z-index: 10;
    display: none;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--dark-color);
}

.dropdown-menu a:hover {
    background-color: var(--light-color);
}

.dropdown-menu i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.user-menu:hover .dropdown-menu {
    display: block;
}

/* 聊天区域样式 */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.agent-message {
    display: flex;
    margin-bottom: 24px;
}

.agent-avatar {
    margin-right: 16px;
}

.agent-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.message-content {
    flex: 1;
}

.message-header {
    margin-bottom: 8px;
}

.agent-name {
    font-weight: 600;
    margin-right: 8px;
}

.welcome-text {
    color: var(--secondary-color);
}

.message-body {
    line-height: 1.6;
}

.deepseek {
    color: var(--primary-color);
    font-weight: 500;
}

.chat-input {
    margin-top: auto;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.input-area {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.input-area textarea {
    width: 100%;
    min-height: 80px;
    border: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    padding: 8px;
    outline: none;
}

.input-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
}

.tool-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 16px;
}

.send-tip {
    font-size: 12px;
    color: var(--secondary-color);
}

.agent-shortcuts {
    display: flex;
    flex-wrap: wrap;
    padding: 16px;
    gap: 16px;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(16.666% - 14px);
    cursor: pointer;
}

.shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--white-color);
}

.shortcut-icon.document {
    background-color: #8B5CF6;
}

.shortcut-icon.propaganda {
    background-color: #EC4899;
}

.shortcut-icon.translate {
    background-color: #3B82F6;
}

.shortcut-icon.classify {
    background-color: #10B981;
}

.shortcut-icon.faq {
    background-color: #F59E0B;
}

.shortcut-icon i {
    font-size: 18px;
}

.shortcut-item span {
    font-size: 12px;
    text-align: center;
}

.footer {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--secondary-color);
} 